package chwgigs.swing.outline;

import java.awt.BorderLayout;
import java.awt.Panel;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

public class J14_BorderLayout  extends JFrame {
	public J14_BorderLayout(){
		setDefaultLookAndFeelDecorated(true);
		setTitle("BorderLayout- ");
		setLayout( new BorderLayout(7,7));
		setBounds(300,300,450,300);
		
		JButton btn1 = new JButton("버튼");
		add(btn1, BorderLayout.NORTH);
		setVisible(true);
		
		JButton btn2 = new JButton("버튼");
		add(btn2, BorderLayout.EAST);
		
		JButton btn3 = new JButton("버튼");
		add(btn3, BorderLayout.SOUTH);
		
		JButton btn4 = new JButton("버튼");
		add(btn4, BorderLayout.WEST);
		
		
		JPanel  Panel = new JPanel();
		
	}

	
	public static void main(String[] args) {
	SwingUtilities.invokeLater(new Runnable(){

		@Override
		public void run() {
		  new J14_BorderLayout();
			
		}
		
	});

	}
	

}//
